package com.ate.lib_core.http.mvp.presenter;


import com.ate.lib_core.http.mvp.model.Imodel;
import com.ate.lib_core.http.mvp.view.Iview;

public class BasePresenter<M extends Imodel,V extends Iview> implements Ipresenter {
    protected M mModel;
    protected V mView;

    public BasePresenter( V mView) {
        this.mView = mView;
        setmModel();
    }

    protected void setmModel(){

    }

    @Override
    public void destory() {
        if(mModel!=null){
            mModel.destory();
            mModel=null;
        }
        System.gc();
    }
}
